#ifndef NANE_D3D9TEXTURE_H
#   define  NANE_D3D9TEXTURE_H

#   include "nane/RenderSystem/IRenderSystem.h"
#   include <d3d9.h>

namespace nane
{
    class D3D9Texture
        : public ITexture
    {
    public:
        D3D9Texture( IDirect3DTexture9* _pTexture );
        ~D3D9Texture();

        IDirect3DTexture9* getInterface();

    public:
        byte* Lock( uint32 _x, uint32 _y, uint32 _width, uint32 _height, uint32* _pitch );
        void Unlock();

    private:
        IDirect3DTexture9* m_pTexture;
    };
}   // namespace nane

#endif	// NANE_D3D9TEXTURE_H
